How do I generate and post XML in c# [migrated]

Posted by user2922687 on Programmers See other posts from Programmers or by user2922687
Published on 2013-10-26T11:06:55Z Indexed on 2013/10/26 16:07 UTC
Read the original article Hit count: 171

Filed under:

I am a new to c# and faced with a similar problem. I need to generate and post XML to a URL but the parameter in the XML fields should dynamic getting inputs from a frontend app. This layout of the XML

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" 
xmlns:ret="http://xxx.xxx.com">
<soapenv:Header/> 
<soapenv:Body> 
  <ret:Vend> 
    <DestAccount >?</DestAccount> 
    <Amount>?</Amount> 
    <Msg>?</Msg> 
    <SequenceNo>?</SequenceNo> 
    <DealerNo>?</DealerNo> 
    <Password>?</Password> 
   </ret:Vend> 
 </soapenv:Body> 
</soapenv:Envelope>

Can anyone assist on how I can generate this in c#?

© Programmers or respective owner

Related posts about c#